package com.calvin.study;

/**
 * Hello world!
 *
 */
public class App {

	private int i;

	public int getVal() {
		return i;
	}

	public static void main(String[] args) {
		App a = new App();
		a=null;
		System.gc();

	}

	@Override
	protected void finalize() throws Throwable {
		/// gc回收垃圾之前调用
		System.out.println("gc回收垃圾之前调用的方法");
	}
	
	
}
